Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  


RE: How can I create a link Hotspot through Lotusscript?
~Zelda Zekkiburnivu 29.Sep.03 08:36 AM a Web browser
Domino Designer 6.0.2 Windows XP


Thank for your help Rod, I have found another code that solve this problem too

http://www.experts-exchange.com/Applications/Email/Lotus_Notes/Q_20670973.html

Const TYPE_HTML = 21
Const ITEM_SIGN = &H0001

Declare Function NSFItemAppend Lib "nnotes" (Byval noteHandle As Long, Byval iFlags As Integer,Byval iName As Lmbcs String,_
Byval iNameLength As Integer, Byval iType As Integer, Byval iValuePointer As Long, Byval iValueLength As Long) As Integer
Declare Function OSMemAlloc Lib "nnotes" (Byval T As Integer, Byval S As Long, hM As Long) As Integer
Declare Function OSMemFree Lib "nnotes" (Byval hM As Long) As Integer
Declare Function OSLockObject Lib "nnotes" (Byval H As Long) As Long
Declare Sub OSUnlockObject Lib "nnotes" (Byval H As Long)
Declare Sub Poke Lib "kernel32" Alias "RtlMoveMemory" (Byval P As Long, Byval D As Lmbcs String, Byval N As Long)
Sub Initialize
    Dim s As New notessession
    Dim db As notesdatabase
    Dim doc As notesdocument
    Dim html As String
    Dim itemname As String
    Dim memPtr As Long
    Dim memLen As Long
    Dim memhandle As Long
    Dim rc As Integer
     Set db = s.currentdatabase
    Set doc = db.createdocument
     doc.form = "Memo"
    doc.sendto = "YOUR NAME HERE"
     itemname = "Body"
    html = |Hi,<br>This stuff really <b>ROCKS</b><br>And here is a <a href="http://www.openntf.org">Check out some stuff</a>|
     memLen = Len(html)
    rc = OSMemAlloc( 0, memLen, memHandle)
    memPtr = OSLockObject(memHandle)  
Poke memPtr, html, memLen
    rc = NSFItemAppend( doc.handle, ITEM_SIGN , itemname, Len(itemname), TYPE_HTML, memPtr, memLen)
    OSUnlockObject memHandle
    OSMemFree memHandle
     Call doc.send(False)
End Sub




How can I create a link Hotspot thr... (~Zelda Zekkibur... 19.Aug.03)
. . RE: How can I create a link Hotspot... (~Yentl Quetkrot... 19.Aug.03)
. . RE: How can I create a link Hotspot... (~Bella Cistumis... 19.Aug.03)
. . RE: How can I create a link Hotspot... (~Kirk Elreterod... 19.Aug.03)
. . . . RE: How can I create a link Hotspot... (~Zelda Zekkibur... 19.Sep.03)
. . . . . . RE: How can I create a link Hotspot... (~Kirk Elreterod... 19.Sep.03)
. . . . . . . . RE: How can I create a link Hotspot... (~Zelda Zekkibur... 29.Sep.03)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS